#include <stdio.h>

int pot2 (int n){
	int k;
   k=1;
   while (n>=2*k){
     k=2*k;
   }

return k;
}

int main (){
  int res,k;
  printf ("Ingrese un numero MAYOR que 0:");
  scanf ("%d", &k);
  res = pot2 (k);
  printf ("%d\n", res);
 
return 0;
}
